<form name="frm" id="frm" action="<?php echo $this->site['base_url']?>admin_product/save" method="post" enctype="multipart/form-data" >
<table class="title" cellspacing="0" cellpadding="0">
    <tr>
    <td class="title_label"><?php echo Kohana::lang('product_lang.tt_page')?> <?php if (isset($mr[0]['products_serial_number'])) echo '>> '.$mr[0]['products_serial_number']; ?></td>
    <td class="title_button"><?php require('button.php') ?></td>
    </tr>
</table>
<table class="form" align="center" cellpadding="0" cellspacing="0">
  	<tr>
    <td>
    <ul id="product_tab" class="shadetabs">
    <li><a href="#" rel="general_tab" class="selected"><?php echo Kohana::lang('product_lang.lbl_general')?></a></li>
    <li><a href="#" rel="price_tab"><?php echo Kohana::lang('product_lang.lbl_price')?></a></li>
    <li><a href="#" rel="qty_tab"><?php echo Kohana::lang('product_lang.lbl_inventory')?></a></li>
    <li><a href="#" rel="image_tab"><?php echo Kohana::lang('product_lang.lbl_images')?></a></li>
    <li><a href="#" rel="dimension_tab"><?php echo Kohana::lang('product_lang.lbl_dimension')?></a></li>
    <li><a href="#" rel="promotion_tab"><?php echo Kohana::lang('product_lang.lbl_promotion')?></a></li>
    </ul>
	<div style="border:1px solid #999; margin-bottom:1em; padding:10px">
    <div id="general_tab" class="tabcontent">
    <?php require('frm_general.php')?>
    </div>    
    <div id="price_tab" class="tabcontent">
   	<?php require('frm_price.php')?>
    </div>
    <div id="qty_tab" class="tabcontent"> 
    <?php require('frm_qty.php')?>    
    </div>
	<div id="image_tab" class="tabcontent"> 
    <?php require('frm_image.php')?>
    </div> 
    <div id="dimension_tab" class="tabcontent"> 
    <?php require('frm_dimension.php')?>
    </div>
    <div id="promotion_tab" class="tabcontent"> 
    <?php require('frm_promotion.php')?>
    </div> 
	</div>    
	</td>
    </tr>
    <tr><td style="text-align:center;padding-bottom:5px"><?php require('button.php') ?></td></tr>
</table>
</form>
<?php require('frm_inventory.php')?>
<script language="javascript" src="<?php echo $this->site['base_url']?>plugins/popup.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $this->site['base_url']?>themes/plugins/tabcontent/tabcontent.css">
<script type="text/javascript" src="<?php echo $this->site['base_url']?>themes/plugins/tabcontent/tabcontent.js"></script>
<script type="text/javascript">
var countries=new ddtabcontent("product_tab")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
<iframe width=174 height=189 name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="<?php echo $this->site['base_url']?>themes/plugins/calendar/ipopeng.htm" scrolling="no" frameborder="0" 
style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>